package com.lin.lazybone;

import android.app.Application;

import com.lin.lazybone.utils.StaticClass;

import cn.bmob.newim.BmobIM;
import cn.bmob.v3.Bmob;

/**
 * Created by mr.lin on 2017/11/26.
 */

//TODO 集成：1.7、自定义Application，并在AndroidManifest.xml中配置
public class BmobIMApplication extends Application
{

    @Override
    public void onCreate() {
        super.onCreate();
        //TODO 集成：1.8、初始化IM SDK，并注册消息接收器
        //默认初始化Bmob
        Bmob.initialize(this, StaticClass.Bmob_Key);
        BmobIM.init(this);
        BmobIM.registerDefaultMessageHandler(new ImMessageHandler(this));
    }
}
